<#include "formBuilder.ftl" />
		<h1>${frm.label}</h1>

		<ol>
			<#list domos as domo>
				<li>
					<a href="${request.getContextPath()}${controllerPath}/${domo.key}" class="link">
						${domo}
					</a>
				</li>
			</#list>
		</ol>		

		<div class="spacer" ></div>
		<BR />
		
		<@pageErrors />
				
		<input id="addBtn" value="+ Add ${frm.label}" type="button" onclick="$('#addForm').show(); $(this).hide();" <#if fieldErrors?? && fieldErrors?size &gt; 0>style="display:none"</#if>/>
		
		<#assign formVisibility><#if !fieldErrors?? || fieldErrors?size = 0>display:none;</#if></#assign>
		
		<@s.form theme="simple" id="addForm" action="${request.contextPath}${controllerPath}" method="POST" cssClass="cmxform" cssStyle="${formVisibility}" validate="true">
			<@buildForm />
			<@s.submit value="create" />
			<input id="addBtn" value="cancel" type="button" onclick="$('#addBtn').show(); $('#addForm').hide();" />
		</@s.form>
		